<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组练习</title>
</head>
<body>

</body>
<script>
    /*
     *  psuh  pop
    * */
    var arr = [1,2];
    var arr2 = [
        {
           name:'L'
        },{
           name:'T'
        }
    ]

    console.log(arr);

      arr.push(34);
    console.log(arr);

    arr.pop();
    console.log(arr);

    /*
     *  unshift
     *  shift
    * */
</script>
</html>